package com.tianpengtech.admin#(result.moduleName);
import com.jfinal.aop.Before;
import com.jfinal.plugin.activerecord.Model;
import com.tianpengtech.admin.AbstractAdminController;
import com.tianpengtech.admin.InitInterceptor;
import com.tianpengtech.common.exception.ValidateException;
import com.tianpengtech.common.model.#(toLowCase(result.table.modelName)).#(result.table.modelName);

/**
* 路由配置地址：add("/admin/#(result.table.instanceName)", #(result.table.modelName)AdminController.class, "/admin/#(result.table.instanceName)");
* 数据库映射地址：arp.addMapping(#(result.table.modelName).dao.tableName(),#(result.table.modelName).class);
*/
@Before(InitInterceptor.class)
public class #(result.table.modelName)AdminController extends AbstractAdminController{

	@Override
	protected void config() {
		this.clazz=#(result.table.modelName).class;
		this.service=new #(result.table.modelName)AdminServiceImpl();
	}

	@Override
	public void beforeAdd() {

	}

	@Override
	public void beforeAdd(Model< ? > model) throws ValidateException {

	}

	@Override
	public void beforeQueryById(Model<?> model, int id) {

	}

	@Override
	public void beforeUpdate(Model< ? > model) throws ValidateException {

	}

	@Override
	public void beforeDelete(Model< ? > model) {

	}

	@Override
	public void parsePageRecord(Object results) {
		
	}
}

	